
	
/****** Object:  Stored Procedure [dbo].GiftsInsert    Script Date: Monday, July 27, 2009 ******/
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[spGiftsInsert]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[spGiftsInsert]
GO

			
	
	

/******************************************************************************
**		File: 
**		Name: [dbo].spGiftsInsert
**		Desc: 
**
**		Return values:
** 
**		Called by:   
**              
**		Parameters:
**		Input							Output
**     ----------							-----------
**
**		Auth: CodeSmith
**		Date: 7/27/2009 4:18:20 PM
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:				Description:
**		--------		--------				-------------------------------------------
**    
*******************************************************************************/
CREATE PROCEDURE [dbo].spGiftsInsert
	@Name nvarchar(50),
	@Price int,
	@Description ntext,
	@CreationDate datetime,
	@GiftId int output
AS

INSERT INTO [dbo].[Gifts] 
(
	[Name],
	[Price],
	[Description],
	[CreationDate]
) 
VALUES 
(
	@Name,
	@Price,
	@Description,
	@CreationDate
)

SELECT @GiftId = @@IDENTITY

GO
	

